<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Swim 2.0</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="container">
<div id="masthead" class="navBG">
	<%@ include file="log.jsp" %>
</div>
	<div id="left_col" class="navBG">
		<%@ include file="menu.jsp" %>
	</div>
	<div id="page_content">
	<div class="centerTitle">Login</div>
	<form action="LoginServlet?act=login" method="post" >
	<table class="inputTable" align="center">
		<tr>
			<td class="cellField">Username :</td>
			<td><input name="username" type="text" />&nbsp;</td>
		</tr>
		<tr>
			<td class="cellField">Password :</td>
			<td><input name="password" type="password" />&nbsp;</td>
		</tr>
		<tr>
			<td class="formButton"><input name="loginButton" type="submit" value="Login" /></td>
		</tr>
		</table>
	</form>
<% if(request.getAttribute("loginError")!=null){ %>
		<div class="error"> Errore: Username o Password non corretti! </div>
<% } %>
	</div>
	<div id="footer" class="navBG">
	<p> Aliprandi-Belladelli </p>
	</div>
</div>

</body>

</html>
